<?php
/*
 *  Jiba: A small collection of classes to make php easier.
 *  Copyright (C) 2007  Dimitri Michaux <dimitri.michaux@gmail.com>
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * contactinfo.class.php, Jiba
 * 
 * Keeps information of a contact.
 *
 * @author Dimitri Michaux
 * @version 0.1
 * @package jiba
 */

class ContactInfo {
	private $_company;
	private $_name;
	private $_street;
	private $_city;
	private $_phone;
	private $_fax;
	private $_vatNr;
	private $_bankAccount;
	private $_email;
	private $_website;

	//set functions
	
	public function setCompany( $str="" ) {
		$this->_company = $str;
		return $this;
	}
	
	public function setName( $str="" ) {
		$this->_name = $str;
		return $this;
	}
	
	public function setStreet( $str="" ) {
		$this->_street = $str;
		return $this;
	}
	
	public function setCity( $str="" ) {
		$this->_city = $str;
		return $this;
	}
	
	public function setPhone( $str="" ) {
		$this->_phone = $str;
		return $this;
	}
	
	public function setFax( $str="" ) {
		$this->_fax = $str;
		return $this;
	}
	
	public function setVatNr( $str="" ) {
		$this->_vatNr = $str;
		return $this;
	}
	
	public function setBankAccount( $str="" ) {
		$this->_bankAccount = $str;
		return $this;
	}
	
	public function setEmail( $str="" ) {
		$this->_email = $str;
		return $this;
	}
	
	public function setWebsite( $str="" ) {
		$this->_webSite = $str;
		return $this;
	}
	
	//get functions
	
	public function getCompany() {
		return $this->_company;
	}
	
	public function getName() {
		return $this->_name;
	}
	
	public function getStreet() {
		return $this->_street;
	}
	
	public function getCity() {
		return $this->_city;
	}
	
	public function getPhone() {
		return $this->_phone;
	}
	
	public function getFax() {
		return $this->_fax;
	}
	
	public function getVatNr() {
		return $this->_vatNr;
	}
	
	public function getBankAccount() {
		return $this->_bankAccount;
	}
	
	public function getEmail() {
		return $this->_email;
	}
	
	public function getWebsite() {
		return $this->_webSite;
	}
}
?>
